package com.config;

import com.bean.Bean1;
import com.bean.Bean2;
import com.bean.LifeCycleBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 罗俊华
 * @since 2023/10/26 20:24
 */
@Configuration
public class LifeCycleBeanConfig {

    @Bean
    public LifeCycleBean lifeCycleBean(){
        return new LifeCycleBean();
    }

    @Bean
    public Bean2 bean2(){
        return new Bean2();
    }

    @Bean
    public Bean1 bean1(){
        return new Bean1();
    }
}
